import request from '@/utils/request'

export function getCaptcha() {
  return request({
    url: '/sys/captcha',
    method: 'get'
  })
}

export function foreachAreaList(data) {
  return request({
    url: '/country/list',
    method: 'get',
    params: data
  })
}

export function fetchSchoolList(data) {
  return request({
    url: '/university/list',
    method: 'get',
    params: data
  })
}

export function updateSchoolList(data) {
  return request({
    url: '/university/save',
    method: 'post',
    data
  })
}

export function uploadFile(data) {
  return request({
    url: '/sys/upload',
    method: 'post',
    data
  })
}

export function delSchool(data) {
  return request({
    url: '/university/dels',
    method: 'post',
    data
  })
}
